<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="../../js库/mock.js"></script>
    <script src="../../js库/vue.js"></script>
    <title>css浮动练习2</title>
    <style>
        * {margin: 0; padding: 0;}
        div#root {
            width: 1000px;
            height: 200px;
            margin: 100px auto;
            background-color: grey;
        }
        div.box {
            float: left;
            width: 237.5px;
            height: 180px;
            background-color: rgba(255, 255, 255, 0.894);
            margin: 10px 0;
            margin-left: 10px;
         

        }
        div.top {
            width: 100%;
            height: 110px;
        }
        img {
            width: 100%;
            height: 100%
        }
       div.bottom {
        text-align: center;

       }
       h3 {
        /* background-color: purple; */
        margin: 10px 20px 0px;
       }
       span {
        display: block;
        /* background-color: yellow; */
        margin: 5px 20px;
        font-size: 10px;
        color: gray;
       }
    </style>
</head>

<body>
    <div id="root">
        <div class="box">
        </div>
   
        <div class="box"></div>
        <div class="box"></div>
        <div class="box">
            <div class="top">
                <img src="/picture/all.jpeg" alt="">
            </div>
           <div class="bottom">
            <h3>小米noe7</h3>
            <span>深蓝配色</span>
           </div>
        </div>
    </div>
</body>
<script>
    new Vue({
        el: '#root',
        data() {
            return {
            }
        },
    })
</script>

</html>